<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./vue.min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        
    </div>
    <!-- <template id='dd2'>
        <h2 style="color:red">template tag模板</h2>
    </template> -->
    <script type="x-template" id='dd3'>
        <h2 style="color:red">script tag模板</h2>
    </script>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                num: 10,
                color: 'red'
            },
            methods: {
            },
            //template:`<h2 style="color:red">选项模板</h2>`
            template:'#dd3'
        })
    </script>
</body>

</html>